<admintpl file="header"/>
<head/>
<body>
<div class="wrap J_check_wrap">
  <div class="nav">
    <ul class="cc">
      <li class="current"><a href="{:U('rbac/index')}">角色管理</a></li>
      <li ><a href="{:U('rbac/roleadd')}" >添加角色</a></li>
    </ul>
  </div>
  <div class="table_list">
  <form name="myform" action="{:U('Rbac/listorders')}" method="post">
    <table width="100%" cellspacing="0">
      <thead>
        <tr>
          <td width="30">ID</td>
          <td align="left" >角色名称</td>
          <td align="left" >角色描述</td>
          <td width="40" align="left" >状态</td>
          <td width="200">管理操作</td>
        </tr>
      </thead>
      <tbody>
        <foreach name="roles" item="vo">
        <tr>
          <td>{$vo.id}</td>
          <td>{$vo.name}</td>
          <td>{$vo.remark}</td>
          <td>
          <if condition="$vo['status'] eq 1"> 
          <font color="red">√</font>
          <else />
          <font color="red">╳</font>
          </if>
          </td>
          <td  class="text-c">
          <if condition="$vo['id'] eq 1"> 
          <font color="#cccccc">权限设置</font> | <a href="javascript:open_iframe_dialog('{:U('rbac/member',array('id'=>$vo['id']))}','成员管理');">成员管理</a> | <font color="#cccccc">修改</font> | <font color="#cccccc">删除</font>
          <else />
          <a href="{:U('Rbac/authorize',array('id'=>$vo['id']))}">权限设置</a>  |<a href="javascript:open_iframe_dialog('{:U('rbac/member',array('id'=>$vo['id']))}','成员管理');">成员管理</a>| <a href="{:U('Rbac/roleedit',array('id'=>$vo['id']))}">修改</a> | <a class="J_ajax_del" href="{:U('Rbac/roledelete',array('id'=>$vo['id']))}">删除</a>
          </if>
          </td>
        </tr>
        </foreach>
      </tbody>
    </table>
  </form>
  </div>
</div>
<script src="__ROOT__/statics/js/common.js{$js_debug}"></script>
</body>
</html>